//
//  WJLkdbData.m
//  JerryIos
//
//  Created by 王军 on 2018/2/16.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJLkdbData.h"
#import <LKDBHelper.h>
#import "WJLkdbUtils.h"

@implementation WJLkdbData

+(NSString *)getTableName {
    return @"t_lkdb";
}

//主键
+(NSString *)getPrimaryKey {
    return @"id";
}

//复合主键  这个优先级最高
//+(NSArray *)getPrimaryKeyUnionArray {
//    return @[@"id",@"name"];
//}

+(LKDBHelper *)getUsingLKDBHelper {
    return [WJLkdbUtils getUsingLKDBHelper];
}

//+(void)dbDidCreateTable:(LKDBHelper *)helper tableName:(NSString *)tableName {
//    NSLog(@"dbDidCreateTable函数");
//}
//
//+(void)dbDidAlterTable:(LKDBHelper*)helper tableName:(NSString*)tableName addColumns:(NSArray*)columns {
//    NSLog(@"dbDidAlterTable函数");
//}
//
//// 将要插入数据库
//+(BOOL)dbWillInsert:(NSObject *)entity {
//    NSLog(@"will insert : %@",NSStringFromClass(self));
//    return YES;
//}
////已经插入数据库
//+(void)dbDidInserted:(NSObject *)entity result:(BOOL)result {
//    NSLog(@"did insert : %@",NSStringFromClass(self));
//}
//
//// 将要从数据库中更新数据
//+(BOOL)dbWillUpdate:(NSObject*)entity {
//    NSLog(@"will update : %@",NSStringFromClass(self));
//    return YES;
//}
////已经从数据库中更新数据
//+(void)dbDidUpdated:(NSObject*)entity result:(BOOL)result {
//    NSLog(@"did update : %@",NSStringFromClass(self));
//}
//
//// 将要从数据库中删除数据
//+(BOOL)dbWillDelete:(NSObject*)entity {
//    NSLog(@"will delete : %@",NSStringFromClass(self));
//    return YES;
//}
////已经从数据库中删除数据
//+(void)dbDidDeleted:(NSObject*)entity result:(BOOL)result {
//    NSLog(@"did delete : %@",NSStringFromClass(self));
//}
//
////已经从数据库中查询数据
//+(void)dbDidSeleted:(NSObject*)entity {
//    NSLog(@"did selected : %@",NSStringFromClass(self));
//}

@end
